package shuimin.weixin.contacts.departure;

import pond.db.Model;

/**
 * Created by sky on 16/5/19.
 */
public class Departure extends Model {

    {
        //部门名称
        field("name");
        //父亲部门id。根部门id为1
        field("parentid");
        //在父部门中的次序值。order值小的排序靠前
        field("order");
        //部门id
        field("id");
    }

    public static Departure  create(String id,String name,String parentid,String order){
        Departure departure=new Departure();
        departure.set("name",name);
        departure.set("parentid",parentid);
        departure.set("order",order);
        departure.set("id",id);
        return departure;
    }
}
